/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.mzk.oai.repositoryManager.collections;

import cz.mzk.oai.repositoryManager.EntityNotFoundException;
import cz.mzk.oai.repositoryManager.EntityPresentException;
import cz.mzk.oai.repositoryManager.IncorrectEntityException;
import cz.mzk.oai.repositoryManager.NotEmptyException;

/**
 *
 * @author Martin Rehanek (rehan@mzk.cz)
 */
public interface CollectionManager {

    public CollectionEntity findCollection(String name) throws EntityNotFoundException;

    public CollectionEntity createCollection(String name) throws EntityPresentException;

    //only empty collection can be removed
    public void removeCollection(CollectionEntity collection) throws NotEmptyException, IncorrectEntityException;

}
